package aps.module_Machines;

//Vanilla Minecraft
import net.minecraft.src.Container;
import net.minecraft.src.InventoryPlayer;
import net.minecraft.src.Slot;
import net.minecraft.src.ICrafting;

//APS
import aps.module_Core.ContainerAPS;

//Buildcraft
import buildcraft.energy.EngineStone;
import buildcraft.energy.TileEngine;

public class ContainerGrinder extends ContainerAPS
{
    public ContainerGrinder(TileEntityGrinder cargo, InventoryPlayer playerInv)
    {
    	super(cargo, playerInv);
    	//super(playerInv);
    	addSlotToContainer(new Slot(cargo, 0, 30, 35));
    	addPlayerInventorySlots(playerInv);
    }
    
    public void updateCraftingResults()
    {
    	super.updateCraftingResults();
    	
    	for (int i = 0; i < crafters.size(); i++)
    		this.tileEntity.sendGUIUpdates(this, (ICrafting)crafters.get(i)); //assuming im sending updates to each person with this gui open
    }
    
    public void updateProgressBar(int i, int j)
    {
    	this.tileEntity.getGUIUpdates(i, j);
    }
}